package my.headfirstjava.command.restaurant;

import java.util.List;

/**
 * author: xl
 * time: 2018/11/6 14:23
 * description:
 **/
public class Order  implements  Command{


    Command command;
    public Order(Command command){
          this.command=command;
     }


    @Override
    public void command(List<String> orderList) {
        for (int i = 0; i <orderList.size() ; i++) {
            String order = orderList.get(i);
            System.out.println("我接收菜单"+order);
        }
        command.command(orderList);
    }
}
